package com.example.innovate.domain;

import java.util.ArrayList;
import java.util.List;

public class CompetitionRefuseDOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CompetitionRefuseDOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRefuseIdIsNull() {
            addCriterion("refuse_id is null");
            return (Criteria) this;
        }

        public Criteria andRefuseIdIsNotNull() {
            addCriterion("refuse_id is not null");
            return (Criteria) this;
        }

        public Criteria andRefuseIdEqualTo(Integer value) {
            addCriterion("refuse_id =", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdNotEqualTo(Integer value) {
            addCriterion("refuse_id <>", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdGreaterThan(Integer value) {
            addCriterion("refuse_id >", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("refuse_id >=", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdLessThan(Integer value) {
            addCriterion("refuse_id <", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdLessThanOrEqualTo(Integer value) {
            addCriterion("refuse_id <=", value, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdIn(List<Integer> values) {
            addCriterion("refuse_id in", values, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdNotIn(List<Integer> values) {
            addCriterion("refuse_id not in", values, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdBetween(Integer value1, Integer value2) {
            addCriterion("refuse_id between", value1, value2, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("refuse_id not between", value1, value2, "refuseId");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameIsNull() {
            addCriterion("refuse_class_name is null");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameIsNotNull() {
            addCriterion("refuse_class_name is not null");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameEqualTo(String value) {
            addCriterion("refuse_class_name =", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameNotEqualTo(String value) {
            addCriterion("refuse_class_name <>", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameGreaterThan(String value) {
            addCriterion("refuse_class_name >", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameGreaterThanOrEqualTo(String value) {
            addCriterion("refuse_class_name >=", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameLessThan(String value) {
            addCriterion("refuse_class_name <", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameLessThanOrEqualTo(String value) {
            addCriterion("refuse_class_name <=", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameLike(String value) {
            addCriterion("refuse_class_name like", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameNotLike(String value) {
            addCriterion("refuse_class_name not like", value, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameIn(List<String> values) {
            addCriterion("refuse_class_name in", values, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameNotIn(List<String> values) {
            addCriterion("refuse_class_name not in", values, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameBetween(String value1, String value2) {
            addCriterion("refuse_class_name between", value1, value2, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseClassNameNotBetween(String value1, String value2) {
            addCriterion("refuse_class_name not between", value1, value2, "refuseClassName");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIsNull() {
            addCriterion("refuse_reason is null");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIsNotNull() {
            addCriterion("refuse_reason is not null");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonEqualTo(String value) {
            addCriterion("refuse_reason =", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotEqualTo(String value) {
            addCriterion("refuse_reason <>", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonGreaterThan(String value) {
            addCriterion("refuse_reason >", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonGreaterThanOrEqualTo(String value) {
            addCriterion("refuse_reason >=", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLessThan(String value) {
            addCriterion("refuse_reason <", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLessThanOrEqualTo(String value) {
            addCriterion("refuse_reason <=", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLike(String value) {
            addCriterion("refuse_reason like", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotLike(String value) {
            addCriterion("refuse_reason not like", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIn(List<String> values) {
            addCriterion("refuse_reason in", values, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotIn(List<String> values) {
            addCriterion("refuse_reason not in", values, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonBetween(String value1, String value2) {
            addCriterion("refuse_reason between", value1, value2, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotBetween(String value1, String value2) {
            addCriterion("refuse_reason not between", value1, value2, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdIsNull() {
            addCriterion("refuse_user_id is null");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdIsNotNull() {
            addCriterion("refuse_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdEqualTo(Integer value) {
            addCriterion("refuse_user_id =", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdNotEqualTo(Integer value) {
            addCriterion("refuse_user_id <>", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdGreaterThan(Integer value) {
            addCriterion("refuse_user_id >", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("refuse_user_id >=", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdLessThan(Integer value) {
            addCriterion("refuse_user_id <", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("refuse_user_id <=", value, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdIn(List<Integer> values) {
            addCriterion("refuse_user_id in", values, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdNotIn(List<Integer> values) {
            addCriterion("refuse_user_id not in", values, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdBetween(Integer value1, Integer value2) {
            addCriterion("refuse_user_id between", value1, value2, "refuseUserId");
            return (Criteria) this;
        }

        public Criteria andRefuseUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("refuse_user_id not between", value1, value2, "refuseUserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}